import Vue from 'vue'
import App from './layouts/App.vue'
import axios from "./plugins/axios" // 引入拦截器
import store from './plugins/vuex' // 引入store实例
// 引入懒加载
import VueLazyLoad from 'vue-lazyload'
// 引入vant
import Vant from 'vant'
import 'vant/lib/index.css'
// 引入router
import router from './plugins/router'

// 引入font转化vw
import './assets/js/font'

Vue.config.productionTip = false


Vue.use(VueLazyLoad, {
  // 加载中图片
  loading: require('../public/images/loading.gif'),
  // 加载失败图片
  error: require('../public/images/error.png')
})

Vue.use(Vant);


let vm = new Vue({
  render: h => h(App),
  router,
  axios,
  store
}).$mount('#app')

export default vm